<script>
export default {
  name: 'AuthButton',
  props: {
    btnString: {
      type: String,
      required: true
    }
  },
  render() {
    const pers = this.$store.state.user.profile.permissions
    if (pers.includes('*:*:*') || pers.includes(this.btnString)) {
      return this.$slots.default
    }
    return null
  }

}

</script>
